package com.eastfair.transport.controller;

import com.eastfair.core.base.R;
import com.eastfair.core.exception.BizException;
import com.eastfair.home.dto.BoothAcceptanceRecordDTO;
import com.eastfair.transport.service.HomeSpaceService;
import com.eastfair.transport.service.TransportExhibitionCompanyService;
import com.eastfair.venuebooking.vo.SpaceVO;
import com.eastfair.venueservice.dto.ExhibitionServiceProviderDTO;
import com.eastfair.venueservice.dto.ServiceProviderDTO;
import com.eastfair.venueservice.dto.ServiceProviderSpaceDTO;
import com.eastfair.venueservice.vo.ExhibitionCompanyVO;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 展会企业 controller.
 *
 * @author dqq
 * @date 2022 /10/11
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/homeSpace")
public class HomeSpaceController {

    @Resource
    private HomeSpaceService homeSpaceService;



    /**
     * 获取可验收的展厅.
     * @return the r
     */
    @ApiOperation("获取可验收的展厅")
    @PostMapping("/getSpaceCanAccept")
    public R<List<SpaceVO>> getSpaceCanAccept(@RequestBody ExhibitionServiceProviderDTO serviceProviderDTO){
        return R.success(homeSpaceService.getSpaceCanAccept(serviceProviderDTO));
    }
}